home *** CD-ROM | disk | FTP | other *** search
/ ADA Programming Guide / ADA Programming Guide.iso / ada_gnu / adainc / s-imgwch.ads < prev    next >
Text File  |  1996-01-30  |  3KB  |  47 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                         GNAT RUNTIME COMPONENTS                          --
  4. --                                                                          --
  5. --                     S Y S T E M . I M G _ W C H A R                      --
  6. --                                                                          --
  7. --                                 S p e c                                  --
  8. --                                                                          --
  9. --                            $Revision: 1.8 $                              --
  10. --                                                                          --
  11. --           Copyright (c) 1992,1993,1994 NYU, All Rights Reserved          --
  12. --                                                                          --
  13. -- The GNAT library is free software; you can redistribute it and/or modify --
  14. -- it under terms of the GNU Library General Public License as published by --
  15. -- the Free Software  Foundation; either version 2, or (at your option) any --
  16. -- later version.  The GNAT library is distributed in the hope that it will --
  17. -- be useful, but WITHOUT ANY WARRANTY;  without even  the implied warranty --
  18. -- of MERCHANTABILITY  or  FITNESS FOR  A PARTICULAR PURPOSE.  See the  GNU --
  19. -- Library  General  Public  License for  more  details.  You  should  have --
  20. -- received  a copy of the GNU  Library  General Public License  along with --
  21. -- the GNAT library;  see the file  COPYING.LIB.  If not, write to the Free --
  22. -- Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.        --
  23. --                                                                          --
  24. ------------------------------------------------------------------------------
  25.  
  26. --  Wide_Character'Image
  27.  
  28. with System.WCh_Con;
  29.  
  30. package System.Img_WChar is
  31. pragma Preelaborate (Img_WChar);
  32.  
  33.    function Image_Wide_Character
  34.      (V    : Wide_Character;
  35.       S    : access String;
  36.       EM   : System.WCh_Con.WC_Encoding_Method)
  37.       return Natural;
  38.    --  Computes Wode_Character'Image (V) and stores the result in S (1 .. N)
  39.    --  where N is the length of the image string. The value of N is returned
  40.    --  as the result. The caller guarantees that the string is long enough.
  41.    --  The argument EM is a constant representing the encoding method in use.
  42.    --  The encoding method used is guaranteed to be consistent across a
  43.    --  given program execution and to correspond to the method used in the
  44.    --  source programs.
  45.  
  46. end System.Img_WChar;
  47.